const express = require('express')
const router = express.Router()
const roleController = require('../controller/role')


//获取所有账户信息
router.get('/getAccount/:page/:pageSize', roleController.getAccount)
//添加账户权限
router.post('/addAccount', roleController.addAccount)
//修改账户
router.post('/updateAccount', roleController.updateAccount)
//删除账户
router.delete('/deleteAccount/:id', roleController.deleteAccount)
//获取admin_role数据库信息
router.get('/getRole', roleController.getRole)
//修改权限
router.post('/updateRole', roleController.updateRole)

module.exports = router